ModifyNetworkInterfaceAttribute
Description
the call ModifyNetworkInterfaceAttribute modify the name, description, and security group of an elastic network card (ENI).
Request Method
POST
Request Path
/apsara/route/Ecs/ModifyNetworkInterfaceAttribute
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Description | BODY | string | No | test | description information of elastic network card. The length is 2 to 256 English or Chinese characters and cannot start with http:// and https:// default value: empty. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
SecurityGroupId.N | BODY | repeatlist | No | sg-bp67acfmxazb4ph*** | SecurityGroupId the list, the security group that the flexible network card finally joins, and will remove the existing security group. The value range of N is 1-5. |
NetworkInterfaceName | BODY | string | No | my-eni-name | the name of the elastic network card. The length is 2~128 English or Chinese characters. It must start with a letter or Chinese, and cannot start with http:// or https. It can contain numbers, colons (:), underscores (_), or hyphens (-). default value: empty. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the ENI. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
NetworkInterfaceId | BODY | string | Yes | eni-bp67acfmxazb4ph*** | ENI ID. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}